package com.dormms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dormms.bean.DormAdminInfo;
import com.dormms.bean.DormLocation;
import com.dormms.dto.DormLocationAdmin;

public interface DormLocationDao {
	//查询宿舍楼信息列表
	public List<DormLocation> queryDormLocationInfo(@Param("dormLocation")DormLocation dormLocation);
	//插入到宿舍楼信息表
	public Integer insertDormLocationInfo(DormLocation dormLocation);
	//判断宿舍楼编号是否存在
	public Integer isDormLocationExist(Integer dormLocationId);
	//插入到宿舍楼管理信息表
	public Integer insertDromLocationAdmin(DormLocationAdmin dormLocationAdmin);
	//判断宿舍管理员已被分配
	public String isDormLocationAdminExist(String dormAdminId);
	//查询所有未被分配的宿舍管理信息列表
	public List<DormAdminInfo> queryNoAdminDormLocationDormAdmin();
	//通过宿舍楼编号 查询宿舍楼信息
	public DormLocation queryDormLocationByDormLocationId(Integer dormLocationId);
	//通过宿舍楼号 获取所有在职宿舍管理员
	public List<DormAdminInfo> queryAdminDormLocationAllDormAdminByDormLocationId(Integer dormLocationId);
	//更新宿舍信息
	public Integer updateAdminDormLocationInfoBySuper(DormLocation dormLocation);
	public Integer deleteDromLocationAdminByDormAdminId(String dormAdminId);
	
	//通过宿舍楼号查询所有宿舍号
	public List<Integer> queryAllDormIdByDormLocation(Integer dormLocationId);
}
